package cn.fanyamin.service;

import java.util.List;

import cn.fanyamin.dao.CategoryDao;
import cn.fanyamin.dao.CategoryNoDbDao;
import cn.fanyamin.model.Category;

public class CategoryDaoService implements CategoryService {

	private CategoryDao dao;

    public CategoryDaoService() {
        this.dao = new CategoryNoDbDao();
    }

    public List<Category> getAllCategories() {
        return dao.getAllCategories();
    }

}
